import numpy as np
import matplotlib.pyplot as plt

def f(x): 
    return x+1

def g(x): 
    return x**2

def h(x): 
    return f(g(x))

x = np.array(range(-10,10))

y = np.array([h(i) for i in x])
plt.plot(x, y, 'bo')

plt.show()